<!DOCTYPE html>
<html lang="zh-cn">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
	<title>栅格系统</title>
	
	<link rel="stylesheet"  href="__ROOT__/static/css/bootstrap.min.css" />
	<style>

a:focus{
outline:none;
}

}
	</style>
	
	</head>
<body style="margin:200px">



<p>data-ride="carousel"属性用户标记轮播在页面加载时开始动画播放。</p>

<hr style="width:80%;height:3px;border:none;border-top:3px double red;" />
<p style="text-align:center">轮播插件2 js控制</p>

<div id="myCarousel1" class="carousel slide"  style="width:500px"> 
<ol class="carousel-indicators">

      <li data-target="#myCarousel1" data-slide-to="0" class="active"></li>

     <li data-target="#myCarousel1" data-slide-to="1"></li>
	 <li data-target="#myCarousel1" data-slide-to="2"></li>

</ol>

<div class="carousel-inner">
      <div class="item active">
              <img src="__ROOT__/static/note/img/7.jpg" alt="第一张">
              <div class="carousel-caption">
			      <h3>第一张照片</h3>
				  <p>如果这个div不被上一个div包住，这则说明就变成了所有照片的说明，并且不移动</p>
				 </div> 
				  </div>
    <div class="item">

              <img src="__ROOT__/static/note/img/7.jpg" alt="第二张"> </div>

  <div class="item">

             <img src="__ROOT__/static/note/img/7.jpg" alt="第三张"> </div>

  </div>

<a href="#myCarousel1" data-slide="prev" class="carousel-control left">&lsaquo;</a>

<a href="#myCarousel1" data-slide="next" class="carousel-control right">&rsaquo;</a>

</div>

<br/>

<button id="cycle" class="btn btn-default">开始</button>
<button id="pause" class="btn btn-default">停止</button>
<button id="number" class="btn btn-default">第三条的标题</button>





<script src="__ROOT__/static/js/jquery.min.js"></script>
<script src="__ROOT__/static/js/bootstrap.min.js"></script>
<script type="text/javascript">
$('#cycle').on('click', function () {

//点击后，自动播放

$('#myCarousel1').carousel('cycle');

//其他雷同

})
$('#pause').on('click', function () {

//点击后，自动播放

$('#myCarousel1').carousel('pause');

//其他雷同

})

$('#number').on('click', function () {

//点击后，自动播放

$('#myCarousel1').carousel(2);

//其他雷同

})


</script>



</body>
</html>